package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbStageMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbStage;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-09-20 09:18
 **/

@Repository
public class TbStageDao {
    @Autowired
    TbStageMapper tbStageMapper;

    public TbStage selectByPrimaryKey(Long id) {
        return tbStageMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbStage record) {
        return tbStageMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbStage record) {
        return tbStageMapper.insertSelective(record);
    }

    public List<TbStage> selectListForPage(TbStage where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbStageMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbStage where, TbCustomWhere mapWhere) {
        return tbStageMapper.selectListForPageCount(where, mapWhere);
    }
}
